]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y: exposing percentage label on power menu items
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 31 Jul 2012 15:39:32 +0000 (17:39 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 21 Aug 2012 16:16:51 +0000 (18:16 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=682366

js/ui/status/power.js

index c887406b0954089d4257ee5b5df39ea096a3c3d7..1c18b4d59c402cd838beb994996fbb50627ab8e4 100644 (file)
@@ -187,6 +187,8 @@ const DeviceItem = new Lang.Class({
 
         let percentLabel = new St.Label({ text: C_("percent of battery remaining", "%d%%").format(Math.round(percentage)) });
         this.addActor(percentLabel, { align: St.Align.END });
+        //FIXME: ideally we would like to expose this._label and percentLabel
+        this.actor.label_actor = percentLabel;
     },
 
     _deviceTypeToString: function(type) {